package com.dongdong.back;

import com.dongdong.api.SellerServiceApi;
import com.dongdong.model.TbSeller;
import com.dongdong.result.Result;
import com.dongdong.vo.TbSellerVO;
import org.springframework.cloud.openfeign.FallbackFactory;

public class SellerBackFactory implements FallbackFactory<SellerServiceApi> {
    @Override
    public SellerServiceApi create(Throwable cause) {

        return new SellerServiceApi(){


            @Override
            public TbSeller selectSellerByUsername(String name) {
                return null;
            }

            @Override
            public TbSeller selectSellerBySellerId(String sellerId) {
                return new TbSeller();
            }

            @Override
            public int unameseller(String uname) {
                return 0;
            }

            @Override
            public Result sellerregiestadd(TbSellerVO sellerVO) {
                return null;
            }
        };




    }












}
